const PLUGIN_KEYS = [
  'onConstruct',
  'onCommand',
  'onQuery',
  'renderEditor',
  'renderBlock',
  'renderDecorator',
  'queries',
  'commands',
  'schema'
];
class Plugin {
  constructor(options) {
    PLUGIN_KEYS.forEach(key => {
      if (options[key]) {
        this[key] = options[key];
      }
    });
  }
}
Plugin.prototype.__plugin__ = true;
export default Plugin;
